/**
 ** 前端JS语种资源文件
 **/
// 语言包
var transLang = {
  "zh_CN": {
    //交易
    trans: {
      login: '请点击此处进入登录验证',
      transfer: '请点击此处进入转账页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
      timedep: '请点击此处进入定期存款页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
      curexcge: '请点击此处进入货币兑换页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
      transactionRec: '请点击此处进入交易记录',
      exchange: '请点击此处进入货币兑换',
    },
    loan: {
      loan: '为继续您的申请，需要您提供TUConsent，请点击以下<',
      link: '链接',
      startLoan: '客户开始填写按揭表单',
      fishLoan: '客户完成填写按揭表单',
      cacelLoan: '客户取消填写按揭表单'
    },
    tip: {
      networkerror: '断开网络连接',
      restoreNetwork: '恢复网络连接',
      startCobrower: '开始远程协助',
      leaveconference: '离开语音视频或者远程协助',
      NoResponse: '您好，对话将在1分钟后自动结束。您还需要我们协助吗？',
      EndChat: '您好，由于我们仍未收到您的回应，这次对话已经自动结束。如果需要任何协助，请先按[x]结束现时的对话，并重新按「在线客服」图标开始对话。',
      Transfering: '我们正为您转接至其他线上客服',
      TransferFail: '转接失败！',
      TransferSuccess: '转接成功！',
      agentAnswer1: '您好，我是',
      agentAnswer2: '，请问有什么可以为您提供协助？ ',
      userLogin: '客户已登录',
      agentVoiceRequset: '座席发起音频对话',
    }
  },
  "zh_TW": {
    //交易
    trans: {
      login: '請點擊此處進入登錄驗證',
      transfer: '請點擊此處進入轉賬頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
      timedep: '請點擊此處進入定期存款頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
      curexcge: '請點擊此處進入貨幣兌換頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
      transactionRec: '請點擊此處進入交易記錄',
      exchange: '請點擊此處進入货币兌換',
    },
    loan: {
      loan: '為繼續您的申請，需要您提供TUConsent，請點擊以下<',
      link: '鏈接',
      startLoan: '客戶開始填寫按揭表單',
      fishLoan: '客戶完成填寫按揭表單',
      cacelLoan: '客戶取消填寫按揭表單'
    },
    tip: {
      networkerror: '斷開網絡連接',
      restoreNetwork: '恢復網絡連接',
      startCobrower: '開始網頁協同',
      leaveconference: '離開語音視頻或者網頁協同',
      NoResponse: '您好, 對話將在1分鐘後自動結束。您還需要我們協助嗎?',
      EndChat: '您好, 由於我們仍未收到您的回應, 今次對話已經自動結束。如果需要任何協助, 請先按[x]結束現時的對話, 並重新按「在線客服」圖標開始對話。',
      Transfering: '我們正為您轉駁至其他在線專員',
      TransferFail: '轉接失敗！',
      TransferSuccess: '轉接成功！',
      agentAnswer1: '您好，我是',
      agentAnswer2: '，請問有甚麽可以幫到您？',
      userLogin: '客戶已登錄',
      agentVoiceRequset: '座席发起音頻对话',
    }
  },
  "en_US": {
    //交易
    trans: {
      login: 'Please click here to enter login validation.',
      transfer: 'Please click here to enter the transfer page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
      timedep: 'Please click here to enter the time deposit page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
      curexcge: 'Please click here to enter the currency exchange page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
      transactionRec: 'Please click here to enter the transaction record.',
      exchange: 'Please click here to enter currency exchange.',
    },
    loan: {
      loan: 'To continue your application, you need to provide TUConsent. Please click on the <',
      link: 'link',
      startLoan: 'Customers start filling out mortgage forms',
      fishLoan: 'Customer completes filling out mortgage form',
      cacelLoan: 'Customers Cancel Filling out Mortgage Form'
    },
    tip: {
      networkerror: 'Disconnect Network Connection',
      restoreNetwork: 'Restore network connection',
      startCobrower: 'start web collaboration',
      leaveconference: 'leave voice, video or web collaboration',
      NoResponse: 'Hi, this session is expiring in 1 minute.  Do you need any further assistance from us?',
      EndChat: 'Hi, the Online Chat session is now expired.  Please click [x] to close the current session, and click the “Online Chat” icon to start another service session.',
      Transfering: 'We are now transferring you to another agent',
      TransferFail: 'Transfer failed!',
      TransferSuccess: 'Transfer success！',
      agentAnswer1: 'Hi, I am ',
      agentAnswer2: ', how can I help? ',
      userLogin: 'Customer logged in',
      agentVoiceRequset: 'Agent request Data Call',
    }
  }
};

// 加载语种
(function () {
  var lang = Utils.localStorage.getItem('lang') || "zh_CN";
  window.customerLang = transLang[lang];
})();

/**
 ** 前端JS语种资源文件
 **/
(function (service) {
  //加载 语言包
  var i18n = {
    "zh_CN": {
      // 电话条
      phoneBar: {
        transfer: '转接',
        chatTransfer: '转接',
        phoneTransfer: '转接座席组',
        tooLong: '通话时间过长',
        artificialSevice: '人工服务',
        BeiJing: '北京市',
        phone: '电话',
        webchat: '在线',
        traditionChiness: '广东话',
        simplifiedChinese: '普通话',
        english: '英语',
        Simplified: '简体',
        Cantonese: '繁体',
        yingyu: '英语',
        onlineBank: '网上银行',
        zixunWeb: '资讯网',
        testWeb: '测试',
        mortgage: '按揭专家APP',
        BOCHKAPP: 'BOCHK APP',
        answer: '接听'
      },
      // 座席状态
      agentStatus: {
        loggedIn: '已登录',
        ready: '就绪',
        workBreak: '工休',
        mealBreak: '用餐',
        training: '会议培训',
        metting: '会议',
        outbound: '外呼',
        groupLeader: '监听',
        scheduledRest: '休息',
        // notReady: '文本整理',
        notReady: '小休',
        AfterCallWork: '话后处理',
        Established: '通话中',
        administrativeWork: '行政工作'
      },
      // 业务列表
      bussList: {
        bussList: '业务列表',
        AllBusiness: '全部业务',
        CommenBusiness: '常用业务',
        keyWords: '请输入关键字',
        Select: '选择',
        CommonlyUsed: '设为常用',
        deletes: '删除',
        select: '请选择',
        other: '其他',
        selectValue: '请选择|-1',
        ReasonSilence: '静默原因',
        DeclineIdentiry: '拒识',
        BusinessTypeAcquisitionFailed: '业务类型获取失败',
        interactSummary: '交互小结',
        businessClassification: '业务分类:',
        conversationSummary: '对话小结:',
        submit: '提交',
        businessEmpty: '业务种类不能为空！',
        update: '修改'
      },
      // 文本静默座席
      silent: {
        Send: '发送',
        Use: '使用',
        Edit: '编辑',
        Close: '关闭',
        RobotXiaoWei: '小娓机器人',
        Font: '字体',
        Emoji: '表情',
        Picture: '图片',
        TryToAskXiaoWei: '试试问问小娓吧',
        EndConversation: '结束对话',
        HandlingComplete: '处理结束',
        TransferToManualAgent: '转人工对话',
        Black: '黑色',
        Blue: '蓝色',
        Red: '红色',
        Green: '绿色',
        Cyan: '青色',
        ShinyGreen: '闪光绿',
        Golden: '金色',
        Yellow: '黄色',
        MicrosoftYahei: '微软雅黑',
        SimHei: '黑体',
        SimSun: '宋体',
        KaiTi: '楷体',
        FangSong: '仿宋',
        FangSong_GB2312: '仿宋_GB2312',
        KaiTi_GB2312: '楷体_GB2312',
        LiSu: '隶书',
        YouYuan: '幼圆',
        SearchForKnowledge: '知识搜索',
        Query: '查询',
        Content: '内容',
        NoMatchRecordIsFound: '找不到匹配的记录',
        keyWordSearch: '搜寻关键字',
        NoDetailsAvailable: '暂无信息详情',
        NoAttachment: '暂无附件',
        Attachment: '附件',
        founder: '创建人',
        CreationTime: '创建时间',
      },
      // 留言座席
      //提示信息
      promptMessage: {
        historySummary: {
          pleasefillInSummary: '请填写小结！',
          saveSuccess: '保存小结成功',
          saveFail: '保存小结失败',
          noSession: '当前暂无对话，不能提交小结',
          updateSuccess: '更新小结成功',
        },
        lobibox: {
          requestDatafailed: '请求数据失败',
          requestTimeOut: '请求超时，请检查网络情况！',
          getAgentInfoFail: '获取座席资讯失败，请再次尝试！',
          noReadyAgentGroups: '暂无空闲座席组',
          noReadyAgents: '暂无空闲座席',
          confirm: '确定',
          retry: '重试',
          placeIdException: '当前Place分机状态异常，请联系管理员或刷新页面重试！',
          errorMessage: '错误提示',
          failCobrower: '网络连接异常，发起协同失败',
          failAudio: '网络连接异常，发起视频失败',
          failVoice: '网络连接异常，发起音频失败',
          fobidCobrower: '很抱歉，当前渠道不支持远程协助',
          releaseLogout: '请先将话后处理中的会话处理结束，再登出',
          endLogout: '请与客户先结束通话，再登出',
          sureLogout: '确定登出?',
          allChannelLogout: '您确认要签出所有渠道并登出?',
          agentDisabled: '当前座席被禁用',
          refresh: '请先处理结束所有聊天',
          endSessionBeforeLogout: '请先结束与客户的会话，再登出',
          placeStatusError: '未登录分机，请先登录分机再签入电话！',
          placeWrong: '分机未正确配置，请联系管理员！',
          agentIdNotAvailable: '当前座席ID不可用，请联系管理员！',
          placeAbnormal: '分机异常，请联系管理员！',
          placeOccupied: '分机占用中，不能进行操作，请先结束通话！',
          placeUsed: '该分机已被其他座席使用，请查正后再使用！',
          connectAgentProxySuccess: '连接' + '服务器成功',
          connectAgentProxyAbnormal: '连接' + '服务器异常，系统正在自动重连，请检查网络是否有故障',
          connectTproxySuccess: '连接电话服务器成功',
          connectTproxyAbnormal: '连接电话服务器异常，系统正在自动重连，请检查网络是否有故障',
          chatNumLimit: '当前对话数量不能超过50个',
          tishi: '提示',
          affirm: '确认',
          cancel: '取消',
          Yes: '是',
          No: '否',
          consultbeforeTransfer: '请先咨询该座席再转接',
          randowQuestionEmpty: '获取随机问题失败',
          notReadyTransfer: '目标座席不存在或处于非就绪状态，不能进行',
          noagentGroups: '目标座席组不存在或没有座席处于就绪状态，不能进行转接',
          fuwulishi: '获取签名信息失败，无法加载服务历史页面',
          inputNumber: '请输入电话号码'
        },
        chatTips: {
          AgentNetWorkException: '座席网络异常',
          MultimediaServiceRecoveryConnection: '恢复连接' + '服务',
          Transfer: '转接',
          Meeting: '会议',
          conferenceMeeting: '邀请您参加会议',
          Consult: '咨询',
          Monitor: '监听',
          TransferFail: '转接失败！',
          TransferSuccess: '转接成功！',
          MeetingFail: '会议失败！',
          ConsultFail: '咨询失败！',
          noTransfer: '转接的座席工号为空',
          Transfering: '我们正为您转接至其他线上客服',
          Conferenceing: '我们正在会议其他线上客服',
          Tips: '温馨提示',
          ChatRinging: '您有新的客户在等待，请尽快处理！',
          ChatFlash: '您有1位新的客户在等待！',
          AcceptVideoRequest: '已接受视频请求',
          acceptVoiceRequest: '已接受音频請求',
          hangup: '终止语音视频或协同浏览',
          refuse: '拒绝语音视频或协同浏览',
          pauseCobrower: '客户暂停协同浏览',
          startCobrower: '客户开始协同浏览',
          stopCobrower: '客户结束协同浏览',
          refuseCobrower: '客户拒绝协同浏览',
          ClientHasNoVideoPlugin: '客户未安装视频软件！',
          LeaveChat: '已离开对话',
          ClientLeft: '客户已离开对话',
          AgentLeft: '座席已离开对话',
          AgentJoin: '加入会议',
          System: '系统提示',
          NoResponse: '您好，对话将在1分钟后自动结束。您还需要我们协助吗？',
          EndChat: '您好，由于我们仍未收到您的回应，这次对话已经自动结束。如果需要任何协助，请先按[x]结束现时的对话，并重新按「在线客服」图标开始对话。',
          SessionEstablishedSuccessfully: '成功建立对话',
          ConfirmExitChat: '是否结束当前会话？<br/>(结束后您将不能给客户发送消息)',
          WebPageCollaborationRequest: '是否需要向客户发起协同浏览请求？',
          AudioRequest: '是否需要向客户发起视频请求？',
          voiceRequest: '是否需要向客戶发起音频请求？',
          agentAudioRequest: '座席发起视频对话',
          agentVoiceRequset: '座席发起音频对话',
          agentEndVideo: '离开视频对话',
          agentEndVoice: '离开音频对话',
          fileLimit: '上传的文件不能超过10MB',
          imageLimit: '上传的图片不能超过10MB',
          voiceLimit: '上传的音频文件不能超过10MB',
          videoLimit: '上传的视频文件不能超过10MB',
          imageFileLimit: '上传的图片、语音片段不能超过10MB',
          fileEmpty: '上传的文件不能为空',
          fileTypeLimit: '暂不支持此类型的文件',
          fileNotSelect: '未选中任何文件',
          InVideoOrCollaboration: '请先结束视频通话或协同浏览！',
          InCollaboration: '请勿重复发起协同浏览！',
          InAudioOrCollaboration: '请先结束音频通话或协同浏览！',
          ConfirmJoinCollaboration: '您是否确定加入远程协助？',
          currentSession: '当前会话',
          robot: '机器人',
          system: '系统',
          agent: '座席',
          warningTips: '警告提示',
          sensitiveWords: '您输入的回复中包含敏感词',
          reEnter: '请重新输入',
          navigatorOffline: '网络连接异常，请稍后再试',
          navigatorOfflineHold: '网络连接异常，保持会话失败',
          navigatorOfflineRetrieve: '网络连接异常，保持取回失败',
          navigatorOfflinerelease: '网络连接异常，结束会话失败',
          navigatorOfflineFile: '网络连接异常，暂不能发送文件',
          navigatorOfflineMediaSummary: '网络连接异常，交互小结提交失败',
          navigatorOfflineTrans: '网络连接异常，交易链接发送失败',
          mostWords: '字数不可多于1333',
          trans: '是否确认发送交易链接',
          onlyAudioRequest: '請點擊視頻按鈕以加入視頻通話會議',
          onlyJoinRequest: '請點擊協同瀏覽按鈕以進行協同瀏覽',
          onlyCallRequest: '請點擊音頻按鈕以加入音頻通話會議',
          agentChat: '座席发起聊天',
          networkerror: '客户断开网络连接',
          restoreNetwork: '客户恢复网络连接',
          leaveconference: '  离开语音视频或者远程协助',
          notSupport: '不支持发送',
          typeofFile: '类型的文件',
          sendFile: '请选择要发送的文件',
          smallFile: '文件档案不能大于5MB',
          agentAnswer1: '您好，我是',
          agentAnswer2: '，请问有什么可以帮您的吗？ ',
          typing: '输入中…',
          unread: '未读',
          tiaoshu: '条',
          noAgent: '目标座席不存在',
          endCollaboration: '请先结束当前发起的远程协助再进行会议',
          noCollaboration: '当前会话超过两个人不能进行远程协助',
          maxSession1: '文本会话最多支持',
          maxSession2: '个人',
          userLogin: '客户已登录',
          refresh: '请先处理当前通话或会话，再刷新页面！',
          conferenceNoTransfer: '会议过程中不能转接',
          leaveAgentDesktop: '确定离开当前页面吗?',
          later: '请稍后再试',
          agentOffline: '座席断网会话结束',
          imgNumInfo1: '图片一次最多可发送',
          imgNumInfo2: '张',
          fileNumInfo1: '文件一次最多可发送',
          fileNumInfo2: '个',
          endVideo: '视频会话已结束',
          endAudio: '音频会话已结束',
          endShare: '共享已结束',
        },
        //交易
        trans: {
          login: '请点击此处进入登录验证',
          transfer: '请点击此处进入转账页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
          timedep: '请点击此处进入定期存款页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
          curexcge: '请点击此处进入货币兑换页面。提醒您 : 「在线客服」将会在对话闲置4分钟後自动结束。如果在交易途中需要协助, 您可以按「在线客服」展开对话。',
          transactionRec: '请点击此处进入交易记录',
          exchange: '请点击此处进入货币兑换',
          webTransLink: '渠道不支持',
          appTransLink: '渠道不支持',
          noSession: '当前无会话，不能发送链接',
          zixun: '渠道不支持',
          loginTrans: '渠道不支持'
        }

      },
      ivrTasting: {
        phonebank: '（电话银行）',
        sms: '（短信）',
        randomQuestion: '（随机问题）',
        randomQuestionLowRisk: '（随机问题-业务低风险）',
        randomQuestionHighRisk: '（随机问题-业务高风险）',
        randomQuestionLowRiskToHigh: '（随机问题-业务低风险转高风险）',
        phonebank2: '电话银行-验密失败',
        phonebank3: '电话银行-客户主动挂机',
        phonebank4: '电话银行-未知异常',
        phonebank5: '电话银行-超时未输入',
        sms2: '短信-验密失败',
        sms3: '短信-客户主动挂机',
        sms4: '短信-未知异常',
        sms5: '短信-超时未输入',
        nextQuestion: '下一个问题',
        remarks: '备注:',
        transCode: '交易码:'
      },
      historyDetail: {
        customerName: '客户姓名：',
        phoneNumber: '联系电话：',
        customerNo: '客户号(CIN)：',
        relatedDetail: '相关内容：',
        summary: '小结内容',
        chatHistory: '聊天内容',
        close: '关闭',
        summary1: '小结',
        checkDetail: '查看内容',
        startTime: '会话开始时间',
        interactiveMode: '交互方式',
        customerContactNumber: '客户联系电话',
        type: '处理方向/类型',
        agentId: '座席工号',
        ConversationContent: '对话内容'
      }
    },
    "zh_TW": {
      // 电话条
      phoneBar: {
        transfer: '轉接',
        chatTransfer: '轉接',
        phoneTransfer: '轉接座席組',
        tooLong: '通話時間過長',
        artificialSevice: '人工服務',
        BeiJing: '北京市',
        phone: '電話',
        webchat: '在綫',
        traditionChiness: '廣東話',
        simplifiedChinese: '普通話',
        english: '英語',
        Simplified: '簡體',
        Cantonese: '繁體',
        onlineBank: '網上銀行',
        zixunWeb: '資訊網',
        testWeb: '测试',
        mortgage: '按揭专家APP',
        BOCHKAPP: 'BOCHK APP',
        answer: '接聽'
      },
      // 座席状态
      agentStatus: {
        loggedIn: '已登錄',
        ready: '就緒',
        workBreak: '工休',
        mealBreak: '用餐',
        training: '會議培訓',
        metting: '會議',
        outbound: '外呼',
        groupLeader: '監聽',
        scheduledRest: '休息',
        notReady: '未就緒',
        AfterCallWork: '電後處理',
        Established: '通話中',
      },
      // 业务列表
      bussList: {
        bussList: '業務列表',
        AllBusiness: '全部業務',
        CommenBusiness: '常用業務',
        keyWords: '請輸入關鍵字',
        Select: '選擇',
        CommonlyUsed: '設為常用',
        deletes: '刪除',
        select: '請選擇',
        other: '其他',
        selectValue: '請選擇|-1',
        ReasonSilence: '靜默原因',
        DeclineIdentiry: '拒識',
        BusinessTypeAcquisitionFailed: '業務類型獲取失敗',
        interactSummary: '交互小結',
        businessClassification: '業務分類:',
        conversationSummary: '對話小結:',
        submit: '全部提交',
        businessEmpty: '業務種類不能爲空！',
        update: '修改'
      },
      // 文本静默座席
      silent: {
        Send: '發送',
        Use: '使用',
        Edit: '編輯',
        Close: '關閉',
        RobotXiaoWei: '小娓機器人',
        Font: '字體',
        Emoji: '表情',
        Picture: '圖片',
        TryToAskXiaoWei: '試試問問小娓吧',
        EndConversation: '結束對話',
        HandlingComplete: '處理結束',
        TransferToManualAgent: '轉人工對話',
        Black: '黑色',
        Blue: '藍色',
        Red: '紅色',
        Green: '綠色',
        Cyan: '青色',
        ShinyGreen: '閃光綠',
        Golden: '金色',
        Yellow: '黃色',
        MicrosoftYahei: '微軟雅黑',
        SimHei: '黑體',
        SimSun: '宋體',
        KaiTi: '楷體',
        FangSong: '仿宋',
        FangSong_GB2312: '仿宋_GB2312',
        KaiTi_GB2312: '楷體_GB2312',
        LiSu: '隸書',
        YouYuan: '幼圓',
        SearchForKnowledge: '知識搜索',
        Query: '查詢',
        Content: '內容',
        NoMatchRecordIsFound: '找不到匹配的記錄',
        keyWordSearch: '搜尋關鍵字',
        NoDetailsAvailable: '暫無信息詳情',
        NoAttachment: '暫無附件',
        Attachment: '附件',
        founder: '創建人',
        CreationTime: '創建時間',
      },
      //提示信息
      promptMessage: {
        historySummary: {
          pleasefillInSummary: '請填寫小結！',
          saveSuccess: '保存小結成功',
          saveFail: '保存小結失敗',
          noSession: '當前暫無對話，不能提交小結',
          updateSuccess: '更新小結成功',
        },
        lobibox: {
          requestDatafailed: '請求數據失敗',
          requestTimeOut: '請求超時，請檢查網路情況!',
          getAgentInfoFail: '獲取座席資訊失敗，請再次嘗試！',
          noReadyAgentGroups: '暫無空閑座席組',
          noReadyAgents: '暫無空閑座席',
          confirm: '確定',
          retry: '重試',
          placeIdException: '當前Place分機狀態異常，請聯係管理員或刷新頁面重試！',
          errorMessage: '錯誤提示',
          failCobrower: '網路連接異常，發起協同失敗',
          failAudio: '網路連接異常，發起視頻失敗',
          failVoice: '網路連接異常，發起音訊失敗',
          fobidCobrower: '很抱歉，當前渠道不支持網頁協同',
          releaseLogout: '請先將話后處理中的會話處理結束，再登出',
          endLogout: '請與客戶先結束通話，再登出',
          sureLogout: '確定登出?',
          allChannelLogout: '您確定要簽出所有渠道並登出?',
          refresh: '請先處理結束所有聊天',
          endSessionBeforeLogout: '請與客戶先結束通話，再登出',
          placeStatusError: '未登錄分機，請先登錄分機再簽入電話！',
          placeWrong: '分機未正確配置，請聯係管理員！',
          agentIdNotAvailable: '當前座席ID不可用，請聯係管理員！',
          placeAbnormal: '分機異常，請聯係管理員！',
          placeOccupied: '分機占用中，不能進行操作，請先結束通話！',
          placeUsed: '該分機已被其他座席使用，請查證后再使用！',
          connectAgentProxySuccess: '連接多媒體服務器成功',
          connectAgentProxyAbnormal: '連接多媒體服務器異常，系統正在自動重連，請檢查網路是否有故障',
          connectTproxySuccess: '連接電話服務器成功',
          connectTproxyAbnormal: '連接電話服務器異常，系統正在自動重連，請檢查網路是否有故障',
          chatNumLimit: '當前對話數量不能超過10個',
          tishi: '提示',
          affirm: '確認',
          cancel: '取消',
          Yes: '是',
          No: '否',
          consultbeforeTransfer: '請先咨詢該座席再轉接',
          randowQuestionEmpty: '獲取隨機問題失敗',
          notReadyTransfer: '目標座席不存在或處於非就緒狀態，唔進行',
          noagentGroups: '目標座席組不存在或沒有座席處於就緒狀態，唔進行轉接',
          fuwulishi: '获取签名信息失败，唔加载服务历史页面',
          inputNumber: '請輸入電話號碼'
        },
        chatTips: {
          AgentNetWorkException: '座席網絡異常',
          MultimediaServiceRecoveryConnection: '恢復連接多媒體服務',
          Transfer: '轉接',
          Meeting: '會議',
          conferenceMeeting: '邀請您參加會議',
          Consult: '咨詢',
          Monitor: '監聽',
          TransferFail: '轉接失敗！',
          TransferSuccess: '轉接成功！',
          MeetingFail: '會議失敗！',
          ConsultFail: '咨詢失敗！',
          noTransfer: '轉接的座席工號為空',
          Transfering: '我們正為您轉駁至其他在線專員',
          Conferenceing: '我们正在会议其他线上客服',
          Tips: '溫馨提示',
          ChatRinging: '您有新的客戶在等待，請盡快處理！',
          ChatFlash: '您有1位新的客戶在等待！',
          AcceptVideoRequest: '已接受視頻請求',
          acceptVoiceRequest: '已接受音頻請求',
          hangup: '客戶終止語音視頻或協同瀏覽',
          refuse: '客戶拒絕語音視頻或協同瀏覽',
          pauseCobrower: '客戶暫停協同瀏覽',
          startCobrower: '客戶開始協同瀏覽',
          stopCobrower: '客户结束協同瀏覽',
          refuseCobrower: '客户拒絕協同瀏覽',
          ClientHasNoVideoPlugin: '客戶未安裝視頻軟件！',
          LeaveChat: '已離開對話',
          ClientLeft: '客戶已離開對話',
          AgentLeft: '座席已離開對話',
          AgentJoin: '加入會議',
          System: '系統',
          NoResponse: '您好, 對話將在1分鐘後自動結束。您還需要我們協助嗎?',
          EndChat: '您好, 由於我們仍未收到您的回應, 今次對話已經自動結束。如果需要任何協助, 請先按[x]結束現時的對話, 並重新按「在線客服」圖標開始對話。',
          SessionEstablishedSuccessfully: '成功建立對話',
          ConfirmExitChat: '是否要結束對話？<br/>（對話記錄將會被清除）',
          WebPageCollaborationRequest: '是否需要向客戶發起協同瀏覽請求？',
          AudioRequest: '是否需要向客戶發起視頻請求？',
          voiceRequest: '是否需要向客戶發起音頻請求？',
          agentAudioRequest: '座席发起視頻对话',
          agentVoiceRequset: '座席发起音頻对话',
          agentEndVideo: '离开視頻对话',
          agentEndVoice: '离开音頻对话',
          fileLimit: '上传的文件不能超过10MB',
          imageFileLimit: '上传的图片、语音片段不能超过10MB',
          fileEmpty: '上传的文件不能为空',
          fileTypeLimit: '暫不支援此類型的文件',
          fileNotSelect: '未选中任何文件',
          InVideoOrCollaboration: '請先結束視頻通話或協同瀏覽！',
          InCollaboration: '請勿重複發起協同瀏覽！',
          InAudioOrCollaboration: '請先結束音頻通話或協同瀏覽！',
          ConfirmJoinCollaboration: '您是否确定加入远程协助？',
          currentSession: '當前會話',
          robot: '機器人',
          system: '系統',
          agent: '座席',
          warningTips: '警告提示',
          sensitiveWords: '您輸入的回復中包含敏感詞',
          reEnter: '請重新輸入',
          navigatorOffline: '網路連接異常，請稍後再試',
          navigatorOfflineHold: '網絡連接異常，保持會話失敗',
          navigatorOfflineRetrieve: '網絡連接異常，保持取回失敗',
          navigatorOfflinerelease: '網絡連接異常，結束會話失敗',
          navigatorOfflineFile: '網絡連接異常，暫不能發送檔案',
          navigatorOfflineMediaSummary: '網絡連接異常，互動小結提交失敗',
          navigatorOfflineTrans: '網絡連接異常，交易連結發送失敗',
          mostWords: '字數不可多於1333',
          trans: '是否確認發送交易鏈接',
          onlyAudioRequest: '請點擊視頻按鈕以加入視頻通話會議',
          onlyJoinRequest: '請點擊協同瀏覽按鈕以進行協同瀏覽',
          onlyCallRequest: '請點擊音頻按鈕以加入音頻通話會議',
          agentChat: '座席發起聊天',
          networkerror: '斷開網絡連接',
          restoreNetwork: '恢復網絡連接',
          leaveconference: '離開語音視頻或者網頁協同',
          notSupport: '不支持發送',
          typeofFile: '類型的檔案',
          sendFile: '請選擇要發送的檔案',
          smallFile: '文件檔案不能大於5MB',
          agentAnswer1: '您好，我是',
          agentAnswer2: '，請問有甚麽可以幫到您？',
          typing: '輸入中…',
          unread: '未讀',
          tiaoshu: '條',
          noAgent: '目標座席唔存在',
          endCollaboration: '唔该先搞掂当前发起嘅远程协助再进行会议',
          noCollaboration: '当前会话超过两个人唔进行远程协助',
          maxSession1: '文本会话最多支持',
          maxSession2: '个人',
          userLogin: '客戶已登錄',
          refresh: '請先處理當前通話或會話，再刷新頁面！',
          conferenceNoTransfer: '會議過程中不能轉接',
          leaveAgentDesktop: '確定離開當前頁面嗎?',
          later: '請稍後再試',
          agentOffline: '座席斷網會話結束',
          imgNumInfo1: '圖片一次最多可發送',
          imgNumInfo2: '張',
          fileNumInfo1: '文件一次最多可發送',
          fileNumInfo2: '個',
          endVideo: '视频会话已结束',
          endAudio: '音频会话已结束',
          endShare: '共享已结束',
        },
        //交易
        trans: {
          login: '請點擊此處進入登錄驗證',
          transfer: '請點擊此處進入轉賬頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
          timedep: '請點擊此處進入定期存款頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
          curexcge: '請點擊此處進入貨幣兌換頁面。提醒您 : 「在線客服」將會在對話閒置4分鐘後自動結束。如果在交易途中需要協助, 您可以按「在線客服」展開對話。',
          transactionRec: '請點擊此處進入交易記錄',
          exchange: '請點擊此處進入货币兌換',
          webTransLink: '渠道唔支持',
          appTransLink: '渠道唔支持',
          noSession: '當前無會話，不能發送連結',
          zixun: '渠道唔支持',
          loginTrans: '渠道唔支持'
        }
      },
      ivrTasting: {
        phonebank: '（電話銀行）',
        sms: '（短信）',
        randomQuestion: '（隨機問題）',
        randomQuestionLowRisk: '（隨機問題-业务低风险）',
        randomQuestionHighRisk: '（隨機問題-业务高风险）',
        randomQuestionLowRiskToHigh: '（隨機問題-业务低风险转高风险）',
        phonebank2: '電話銀行-驗密失敗',
        phonebank3: '電話銀行-客戶主動挂機',
        phonebank4: '電話銀行-未知異常',
        phonebank5: '電話銀行-超時未輸入',
        sms2: '短信-驗密失敗',
        sms3: '短信-客戶主動挂機',
        sms4: '短信-未知異常',
        sms5: '短信-超時未輸入',
        nextQuestion: '下一個問題',
        remarks: '備注:',
        transCode: '交易碼:'
      },
      historyDetail: {
        customerName: '客戶姓名：',
        phoneNumber: '聯係電話：',
        customerNo: '客戶號(CIN)：',
        relatedDetail: '相關内容：',
        summary: '小結内容',
        chatHistory: '聊天内容',
        close: '關閉',
        summary1: '小結',
        checkDetail: '查看内容',
        startTime: '會話開始時間',
        interactiveMode: '交互方式',
        customerContactNumber: '客戶聯係電話',
        type: '處理方向/類型',
        agentId: '座席工號',
        ConversationContent: '對話内容'
      }
    },
    "en_US": {
      // 电话条
      phoneBar: {
        transfer: 'transfer',
        chatTransfer: 'Transfer',
        phoneTransfer: 'Transfer AgentGroup',
        tooLong: 'Too Long',
        artificialSevice: 'Artificial service',
        BeiJing: 'Bei Jing',
        phone: 'Call',
        webchat: 'webchat',
        traditionChiness: 'Cantonese',
        simplifiedChinese: 'Mandarin',
        english: 'English',
        Simplified: 'Simplified',
        Cantonese: 'Cantonese',
        onlineBank: 'Online Bank',
        zixunWeb: 'Information Website',
        testWeb: 'Test',
        mortgage: 'Mortgage APP',
        BOCHKAPP: 'BOCHK APP',
        answer: 'Answer'
      },
      // 座席状态
      agentStatus: {
        loggedIn: 'Logged In',
        ready: 'Auto-in',
        workBreak: 'Work Break',
        mealBreak: 'Meal',
        training: 'Meeting/Training',
        metting: 'Meeting',
        outbound: 'Outbound',
        groupLeader: 'Monitor',
        scheduledRest: 'Break',
        notReady: 'NotReady',
        AfterCallWork: 'AfterCallWork',
        Established: 'Established',
        administrativeWork: 'Admin'
      },
      // 业务列表
      bussList: {
        bussList: 'Business List',
        AllBusiness: 'All Business',
        CommenBusiness: 'Common Business',
        keyWords: 'please enter the key words',
        Select: 'select',
        CommonlyUsed: 'Set to be Common Used',
        deletes: 'delete',
        select: 'Please Select',
        other: '其他',
        selectValue: 'please Select|-1',
        ReasonSilence: 'Reason for Silence',
        DeclineIdentiry: 'Decline to Identiry',
        BusinessTypeAcquisitionFailed: 'Business Type acquisition failed',
        interactSummary: 'Contact History',
        businessClassification: 'Business:',
        conversationSummary: 'Conversation summary:',
        submit: 'Submit all',
        businessEmpty: 'The business category cannot be empty!',
        update: 'Update'
      },
      // 文本静默座席
      silent: {
        Send: 'Send',
        Use: 'use',
        Edit: 'Edit',
        Close: 'Close',
        RobotXiaoWei: 'XiaoWei',
        Font: 'Font',
        Emoji: 'Emoji',
        Picture: 'picture',
        TryToAskXiaoWei: 'Try to ask XiaoWei',
        EndConversation: 'Chat completed',
        HandlingComplete: 'Processing completed',
        TransferToManualAgent: 'Transfer to Live Agent',
        Black: 'Black',
        Blue: 'Blue',
        Red: 'Red',
        Green: 'Green',
        Cyan: 'Cyan',
        ShinyGreen: 'Shiny Green',
        Golden: 'Golden',
        Yellow: 'Yellow',
        MicrosoftYahei: 'Microsoft Yahei',
        SimHei: 'SimHei',
        SimSun: 'SimSun',
        KaiTi: 'KaiTi',
        FangSong: 'FangSong',
        FangSong_GB2312: 'FangSong_GB2312',
        KaiTi_GB2312: 'KaiTi_GB2312',
        LiSu: 'LiSu',
        YouYuan: 'YouYuan',
        SearchForKnowledge: 'Search for Knowledge',
        Query: 'Query',
        Content: 'Content',
        NoMatchRecordIsFound: 'No matched record is found',
        keyWordSearch: 'Keyword search',
        NoDetailsAvailable: 'No details is available',
        NoAttachment: 'No attachment',
        Attachment: 'attachment',
        founder: 'Creator',
        CreationTime: 'Creation Time',
      },
      //提示信息
      promptMessage: {
        historySummary: {
          pleasefillInSummary: 'Please fill in the contact history!',
          saveSuccess: 'Contact history is saved successfully',
          saveFail: 'Failed to save the contact history',
          noSession: 'Cannot submit the contact history as there is no Chat at the moment.',
          updateSuccess: 'Contact history update successfully',
        },
        lobibox: {
          requestDatafailed: 'Failed to request data',
          requestTimeOut: 'Request time out! Please check the network.',
          getAgentInfoFail: 'Failed to get the agent information. Please try again!',
          noReadyAgentGroups: 'No free agent group',
          noReadyAgents: 'No free agent',
          confirm: 'Confirm',
          retry: 'Retry',
          placeIdException: 'Please contact System Administrator or refresh the page',
          errorMessage: 'Error message',
          failCobrower: 'Co-browsing is failed due to network problem',
          failAudio: 'Video call is failed due to network problem',
          failVoice: 'Data call is failed due to network problem',
          fobidCobrower: 'Sorry, the current channel does not support web collaboration',
          releaseLogout: 'Please finish the session processing in post-processing before logout',
          endLogout: 'Please end the conversation before logout',
          sureLogout: 'Confirm logout?',
          allChannelLogout: 'You are sure to check out all channels and log out?',
          refresh: 'Please finish all chats first',
          endSessionBeforeLogout: 'Please end the conversation before logout',
          placeStatusError: 'Please log in to the extension first and then check in the phone!',
          placeWrong: 'The extension is not configured correctly, please contact the administrator!',
          agentIdNotAvailable: 'The current agent ID is not available, please contact the administrator!',
          placeAbnormal: 'The current agent ID is not available, please contact the administrator!',
          placeOccupied: 'The extension is occupied and cannot be operated. Please end the call first!',
          placeUsed: 'This extension has been used by other agents, please check it out and use it!',
          connectAgentProxySuccess: 'Connect to AgentProxy server successfully',
          connectAgentProxyAbnormal: 'The connection to the AgentProxy server is abnormal, the system is automatically reconnecting, please check if the network is faulty.',
          connectTproxySuccess: 'Connect to TProxy server successfully',
          connectTproxyAbnormal: 'The connection to the TProxy server is abnormal, the system is automatically reconnecting, please check if the network is faulty.',
          chatNumLimit: 'The current number of conversations cannot exceed 10',
          tishi: 'Prompt',
          affirm: 'Confirm',
          cancel: 'Cancel',
          Yes: 'Yes',
          No: 'No',
          consultbeforeTransfer: 'Please consult the agent before transfer',
          randowQuestionEmpty: 'Failed to get random question',
          notReadyTransfer: 'The target seat does not exist or not ready and cannot be carried out',
          noagentGroups: 'The target agent group does not exist or no agent is in the ready state.',
          fuwulishi: 'Failed to obtain signature information, unable to load service history page',
          inputNumber: 'Please enter a phone number'
        },
        chatTips: {
          AgentNetWorkException: 'Agent network exception',
          MultimediaServiceRecoveryConnection: 'The connection for multimedia service is recovered',
          Transfer: 'Transfer',
          Meeting: 'Meeting',
          conferenceMeeting: 'invite you to attend the meeting',
          Consult: 'Consulting',
          Monitor: 'Monitor',
          TransferFail: 'Transfer is failed!',
          TransferSuccess: 'Transfer success！',
          MeetingFail: 'Meeting is failed!',
          ConsultFail: 'Consulting failed!',
          noTransfer: 'The transfer seat number is empty.',
          Transfering: 'We are now transferring you to another agent',
          Conferenceing: 'We are now conferencering you to another agent',
          Tips: 'Tips',
          ChatRinging: 'There is a new customer waiting for pickup. Please pick up ASAP!',
          ChatFlash: 'There is a new customer waiting for pickup!',
          AcceptVideoRequest: 'Video Call is accepted',
          acceptVoiceRequest: 'Data Call is accepted',
          hangup: 'Customer has hangup the Data Call / Video Call / Co-browsing',
          refuse: 'Customer has refused to join the Data Call / Video Call / Co-browsing',
          pauseCobrower: 'Customer has paused the Co-browsing',
          startCobrower: 'Customer has started the Co-browsing',
          stopCobrower: 'Customer has ended the Co-browsing',
          refuseCobrower: 'Customer has refused to join the Co-browsing',
          ClientHasNoVideoPlugin: 'Customer do not have any software for Video Call!',
          LeaveChat: ' chat ended',
          ClientLeft: 'Customer has left the Chat',
          AgentLeft: 'Agent has left the Chat',
          AgentJoin: 'Join the conference',
          System: 'System',
          NoResponse: 'Hi, this session is expiring in 1 minute.  Do you need any further assistance from us?',
          EndChat: 'Hi, the Online Chat session is now expired.  Please click [x] to close the current session, and click the “Online Chat” icon to start another service session.',
          SessionEstablishedSuccessfully: 'Chat session has been established successfully:',
          ConfirmExitChat: 'End the conversation?<br/>(The contact history will be cleared)',
          WebPageCollaborationRequest: 'Confirm to request customer for Co-browsing?',
          AudioRequest: 'Confirm to request customer for Video Call?',
          voiceRequest: 'Confirm to request customer for Data Call?',
          agentAudioRequest: 'Agent request Video Call',
          agentVoiceRequset: 'Agent request Data Call',
          agentEndVideo: 'leave Video Call',
          agentEndVoice: 'leave Data Call',
          fileLimit: 'File size cannot exceed 10MB',
          imageFileLimit: 'Image / Voice file size cannot exceed 2MB',
          fileEmpty: 'File upload cannot be empty',
          fileTypeLimit: 'Cannot support this file type',
          fileNotSelect: 'No file is selected',
          InVideoOrCollaboration: 'Please end the Video Call / Co-browsing first!',
          InCollaboration: 'Please do not initiate Co-browsing request again!',
          InAudioOrCollaboration: 'Please end the Data Call / Co-browsing first!',
          ConfirmJoinCollaboration: 'Are you sure to join the webpage collaboration?',
          currentSession: 'current session',
          robot: 'robot',
          system: 'system',
          agent: 'agent',
          warningTips: 'warningTips',
          sensitiveWords: 'The response you entered contains sensitive words',
          reEnter: 'Please re-enter',
          navigatorOffline: 'Please try again later as there is network problem',
          navigatorOfflineHold: 'Network connection exception，maintaining session failure',
          navigatorOfflineRetrieve: 'Network connection exception，maintain recovery failure',
          navigatorOfflinerelease: 'Network connection exception，failed to close the session',
          navigatorOfflineFile: 'Network connection exception，documents cannot be sent for the time being',
          navigatorOfflineMediaSummary: 'Network connection exception，interactive summary submission failed',
          navigatorOfflineTrans: 'Network connection exception，transaction Link Failed to Send',
          mostWords: 'The number of character cannot exceed 1333',
          trans: 'Confirm to send the transaction link?',
          onlyAudioRequest: 'Please click here to join the Video Conference',
          onlyJoinRequest: 'Please click here to join the Co-browsing',
          onlyCallRequest: 'Please click here to join the Data Call Conference',
          agentChat: 'Agent start the Chat',
          networkerror: 'Disconnect Network Connection',
          restoreNetwork: 'Restore network connection',
          leaveconference: ' leave voice, video or web collaboration',
          notSupport: 'sending is not supported',
          typeofFile: 'type of file',
          agentAnswer1: 'Hi, I am ',
          agentAnswer2: ', how can I help? ',
          typing: 'typing…',
          unread: 'unread',
          tiaoshu: '',
          smallFile: 'Document file size cannot exceed 5MB',
          noAgent: 'Target seats do not exist',
          endCollaboration: 'Please end the current web collaboration before the meeting',
          noCollaboration: 'More than two people in the current session can\'t collaborate on the web',
          maxSession1: 'Text sessions support up to ',
          maxSession2: 'people',
          userLogin: 'Customer logged in',
          refresh: 'Please process the current call or session first, then refresh the page!',
          conferenceNoTransfer: 'Cannot transfer during the meeting',
          leaveAgentDesktop: 'Are you sure you are leaving the current page?',
          later: 'Please try again later',
          agentOffline: 'The end of the network disconnection session',
          imgNumInfo1: 'Send up to ',
          imgNumInfo2: ' pictures at a time',
          fileNumInfo1: 'Files can be sent up to ',
          fileNumInfo2: ' at a time',
          endVideo: 'video end',
          endAudio: 'voice end',
          endShare: 'share end',
        },
        //交易
        trans: {
          login: 'Please click here to login',
          transfer: 'Please click here to enter the transfer page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
          timedep: 'Please click here to enter the time deposit page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
          curexcge: 'Please click here to enter the currency exchange page.Reminder: the Online Chat session would expire if the session is idle for 4 minutes.  If you would like any assistance when performing the transaction, please click the Online Chat icon to chat with our Live Agent.',
          transactionRec: 'Please click here to enter the transaction record.',
          exchange: 'Please click here to enter currency exchange',
          webTransLink: 'Channel does not support',
          appTransLink: 'Channel does not support',
          noSession: 'Cannot send the link as there is no Chat at the moment',
          notSupport: 'Sending is not supported',
          typeofFile: 'type of file',
          sendFile: 'Please select the file to send',
          smallFile: 'Document file size cannot exceed 5MB',
          zixun: 'Channel does not support',
          loginTrans: 'Channel does not support'
        }

      },
      ivrTasting: {
        phonebank: '（Initiated PINVER）',
        sms: '（SMSOTP）',
        randomQuestion: '（random question）',
        randomQuestionLowRisk: '（random question-low risk）',
        randomQuestionHighRisk: '（random question-high risk）',
        randomQuestionLowRiskToHigh: '（random question- low risk to high）',
        phonebank2: 'Initiated PINVER-Input error',
        phonebank3: 'Initiated PINVER-Customer hangs on the initiative',
        phonebank4: 'Initiated PINVER-Unknown exception',
        phonebank5: 'Initiated PINVER-Timeout not entered',
        sms2: 'SMSOTP-Input error',
        sms3: 'SMSOTP-Customer hangs on the initiative',
        sms4: 'SMSOTP-Unknown exception',
        sms5: 'SMSOTP-Timeout not entered',
        nextQuestion: 'Next question',
        remarks: 'Remarks:',
        transCode: 'Transaction code:'
      },
      historyDetail: {
        customerName: 'Customer name:',
        phoneNumber: 'Contact number:',
        customerNo: 'CIN No:',
        relatedDetail: 'Related information:',
        summary: 'Contact history content',
        chatHistory: 'Chat content',
        close: 'Close',
        summary1: 'Contact history',
        checkDetail: 'View content',
        startTime: 'Start Time',
        interactiveMode: 'Interactive Mode',
        customerContactNumber: 'Customer phone',
        type: 'Type',
        agentId: 'Agent Id',
        ConversationContent: 'Content'
      }
    }
  };

  // 获取当前语种加载对应语种的资源文件
  var lang = Utils.localStorage.getItem('lang') || "zh_CN";
  window.i18n = i18n[lang];
})();
